import Vue from "vue";
import Vuex from "vuex";
import createPersistedState from "vuex-persistedstate";
Vue.use(Vuex);

export default new Vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  modules: {},
  plugins: [
    createPersistedState({
      // storage: window.cookies,
      storage: window.localStorage,
      key: "store",
      render(state) {
        return { ...state };
        // return {
        //  assessmentData: val.assessmentData
        // }
      },
    }),
  ],
});
